import request from '@/utils/request'

export function pagePlaceStandard(query) {
  return request({
    url: '/api/admin/checkStandard/page',
    method: 'get',
    params: query
  })
}

export function addStandardProblem(obj) {
  return request({
    url: '/api/admin/checkStandard/addStandardProblem',
    method: 'post',
    data: obj
  })
}


export function getItemStandard(id) {
  return request({
    url: '/api/admin/checkStandard/selectStandard/' + id,
    method: 'get'
  })
}


export function putItemStandard(id, obj) {
  return request({
    url: '/api/admin/checkStandard/' + id,
    method: 'put',
    data: obj
  })
}

export function standardList(id) {
  return request({
    url: '/api/admin/checkStandard/standardList/' + id,
    method: 'get'
  })
}


export function delItemStandard(id) {
  return request({
    url: '/api/admin/checkStandard/' + id,
    method: 'delete'
  })
}

export function standardNumber(numberId, contentId) {
  return request({
    url: '/api/admin/checkStandard/standardNumber',
    method: 'get',
    params: { numberId, contentId }
  })
}

export function deleteProblem(id) {
  return request({
    url: `api/admin/checkProblem/${id}`,
    method: 'DELETE'
  })
}

export function updateProblem(id, obj) {
  return request({
    url: `api/admin/checkProblem/${id}`,
    method: 'PUT',
    data: obj
  })
}

export function getProblem(id) {
  return request({
    url: `api/admin/checkProblem/selectProblemOne/${id}`,
    method: 'post'
  })
}
